/*
*  Copyright 2019-2023 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import me.zhengjie.base.BaseEntity;

import java.sql.Timestamp;
import java.io.Serializable;

/**
* @description /
* @author huangwencong
* @date 2024-07-30
**/
@Data
@TableName("train_lxjkz")
public class TrainLxjkz extends BaseEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "训练ID")
    private Long trainId;

    @ApiModelProperty(value = "训练项目ID")
    private Long trainItemId;

    @ApiModelProperty(value = "测试前_血压(mmHg)")
    private Integer csqXy;

    @ApiModelProperty(value = "测试前_心率(bpm)")
    private Integer csqXl;

    @ApiModelProperty(value = "测试后_血压(mmHg)")
    private Integer cshXy;

    @ApiModelProperty(value = "测试后_心率(bpm)")
    private Integer cshXl;

    @ApiModelProperty(value = "结论")
    private Integer result;

    @ApiModelProperty(value = "记录日期")
    private Timestamp date;



    public void copy(TrainLxjkz source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
